package com.mytest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@Slf4j
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "hello, Spring Boot!";
    }

    @PostMapping("/first")
    public String firstSpringBootApp() {
        return "My first SpringBoot Application! ";
    }
}
